package Test;

public class Test5 {
    public static void main(String[] args) {
        int[] arr = {1, 9, 8, 3};
        int a = mima(arr);
        System.out.println(a);
    }
    public static int mima(int[] arr){
        for (int i = 0; i < arr.length; i++) {
            arr[i] = arr[i] + 5;
            arr[i] = arr[i] %10;
        }
        for (int i = 0, j = arr.length - 1; i < j; i++,j--){
            int temp = arr[i];
            arr[i] = arr[j];
            arr[j] = temp;
        }
        int nub = 0;
        for (int i = 0; i < arr.length; i++) {
            nub = nub * 10 + arr[i];
        }
        return nub;

    }
}
